<?php
class User extends AppModel {
	var $name = 'User';
	var $validate = array(
		'email' => array(
			'email' => array(
				'rule' => 'email',
				'message' => 'Введён не корректный e-mail'
			),
			'unique' => array(
				'rule' => 'isUnique',
				'message' => 'Пользователь с таким e-mail уже зарегистрирован'
			)
		)
	);
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $hasMany = array(
		'Feature' => array(
			'className' => 'Feature',
			'foreignKey' => 'user_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Tab' => array(
			'className' => 'Tab',
			'foreignKey' => 'user_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

	var $hasOne = array(
		'Setting' => array(
			'className' => 'Setting',
			'dependent' => true
		)
	);

}
?>